import java.awt.Component;
import java.awt.Container;
import javax.swing.JLayeredPane;
import javax.swing.JRootPane;

class MyJRootPane extends JRootPane
{
  private static final long serialVersionUID = 1L;

  public MyJRootPane()
  {
	System.out.println("MyJRootPane, MyJRootPane()");
  }

  @Override
  protected Component createGlassPane()
  {
	System.out.println("MyJRootPane, createGlassPane()");
    return new MyGlassPane();
  }

  @Override
  protected JLayeredPane createLayeredPane()
  {
	System.out.println("MyJRootPane, createLayeredPane()");
    return new MyJLayeredPane();
  }

  @Override
  protected Container createContentPane()
  {
	System.out.println("MyJRootPane, createContentPane()");
    return new MyContentPane();
  }
  
  public void finalize() throws Throwable
  {
	System.out.println("MyJRootPane, finalize()");
  }
  
  public String toString()
  {
	System.out.println("MyJRootPane, toString()");
	return super.toString();
  }
}